package com.asitar.controller;

import com.asitar.model.pojo.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class helloController {

    @GetMapping("/hello")
    @ResponseBody
    public Result hello(){
        return new Result("200","添加成功",null);
    }

    @GetMapping("/hello1")
    @ResponseBody
    public Result hello2(String username,String password){
        System.out.println(username);
        System.out.println(password);
        return new Result("300","添加成功success",null);
    }

}
